// This file is part of OpenMediaVault.
//
// @license   http://www.gnu.org/licenses/gpl.html GPL Version 3
// @author    Volker Theile <volker.theile@openmediavault.org>
// @copyright Copyright (c) 2009-2023 Volker Theile
//
// OpenMediaVault is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// OpenMediaVault is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
@use 'scss/theme';

.toast-container {
  font-family: theme.$omv-font-family-default;
  font-size: var(--mat-font-size-body-1);

  .ngx-toastr {
    box-shadow: unset;
    min-width: 300px;
    max-width: 500px;
    width: 50% !important;

    &:hover {
      box-shadow: unset;
    }

    &.toast-error {
      @include theme.background-color-pair('error');

      // https://materialdesignicons.com/icon/close-circle
      background-image: url('');
    }

    &.toast-success {
      @include theme.background-color-pair('success');

      // https://materialdesignicons.com/icon/check
      background-image: url('');
    }

    &.toast-info {
      @include theme.background-color-pair('info');

      // https://materialdesignicons.com/icon/information-outline
      background-image: url('');
    }

    &.toast-warning {
      @include theme.background-color-pair('warning');

      // https://materialdesignicons.com/icon/alert
      background-image: url('');
    }
  }
}
